package com.atguigu04.example.exer2;

/**
 * ClassName: Exer2
 * Package: com.atguigu04.example.exer2
 * Description:
 *
 * @Author BuTang
 * @Create 2023/2/27 16:24
 * @Version 1.0
 */
public class Exer2 {
    public void method1(){
        for (int i = 0; i < 10; i++) {
            for (int j = 0; j < 8; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }

    public int method2(){
        for (int i = 0; i < 10; i++) {
            for (int j = 0; j < 8; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
        return 10*8;
    }

    public int method3(int m , int n){
        for (int i = 0; i < m; i++) {
            for (int j = 0; j < n; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
        return m*n;
    }
}
